def test_kbase():
    from iKBase import KBase
    conn = KBase.connect(host = "10.31.199.10", port = 4567, user = "DBOWN", passwd = "")
    print(conn.hcon)
    cur = conn.cursor()
    cur.execute("SELECT * FROM DSZJ7921")
    row = cur.fetchone()
    print(row)

    cur.close()
    conn.close()

if __name__ == '__main__':
    test_kbase()